﻿namespace AladdinGameFramework.Localization
{
	/// <summary>
	/// 加载字典成功事件
	/// </summary>
	public sealed class LoadDictionarySuccessEventArgs : GameFrameworkEventArgs
	{
		/// <summary>
		/// 初始化加载的字典成功事件新实例
		/// </summary>
		/// <param name="dictionaryAssetName">字典资源名称</param>
		/// <param name="duration">加载持续时间</param>
		/// <param name="userData">用户自定义数据</param>
		public LoadDictionarySuccessEventArgs(string dictionaryAssetName, float duration, object userData)
		{
			DictionaryAssetName = dictionaryAssetName;
			Duration = duration;
			UserData = userData;
		}

		/// <summary>
		/// 获取字典资源名称
		/// </summary>
		public string DictionaryAssetName
		{
			get;
			private set;
		}

		/// <summary>
		/// 获取加载持续时间
		/// </summary>
		public float Duration
		{
			get;
			private set;
		}

		/// <summary>
		/// 获取用户自定义数据
		/// </summary>
		public object UserData
		{
			get;
			private set;
		}
	}
}
